package com.atguigu.edu.util;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;


public class ThreadPoolUtil {
    private static ThreadPoolExecutor threadPoolExecutor = null;
    static{
        threadPoolExecutor = new ThreadPoolExecutor(5,20,300L, TimeUnit.SECONDS,new LinkedBlockingDeque<Runnable>());
    }

    public static ThreadPoolExecutor getThreadPoolExecutor(){
        return threadPoolExecutor;
    }
}
